<?php

namespace Lib;

class MyException extends \Exception
{

    public function __construct()
    {
        parent::__construct();
    }

    public function errorMessage()
    {
        //error message
        $errorMsg = 'Error on line '.$this->getLine().' in '.$this->getFile()
            .': <b>'.$this->getMessage();
        return $errorMsg;
    }
}